package com.resume.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @Author: 梁云亮
 * @Date: 2021/7/17 9:23
 * @Describe:培训经历
 */
@ApiModel(value = "培训经历：Training")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_training")
public class Training implements Serializable {
    private static final long serialVersionUID = -6704119026223882368L;
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Integer id;

    /**
     * 培训机构
     */
    @TableField(value = "institution")
    @ApiModelProperty(value = "培训机构")
    private String institution;

    /**
     * 培训课程
     */
    @TableField(value = "course")
    @ApiModelProperty(value = "培训课程")
    private String course;

    /**
     * 培训开始时间
     */
    @TableField(value = "start_time")
    @ApiModelProperty(value = "培训开始时间")
    private LocalDate startTime;

    /**
     * 培训结束时间
     */
    @TableField(value = "end_time")
    @ApiModelProperty(value = "培训结束时间")
    private LocalDate endTime;

    /**
     * 培训经历标签，JSON数组
     */
    @TableField(value = "tags")
    @ApiModelProperty(value = "培训经历标签，JSON数组")
    private String tags;

    /**
     * 状态
     */
    @TableField(value = "status")
    @ApiModelProperty(value = "状态")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 证书编号
     */
    @TableField(value = "zheng_shu_id")
    @ApiModelProperty(value = "证书编号")
    private Integer zhengShuId;
}